<?php

use Phinx\Migration\AbstractMigration;

class AddColumnIsTempInVersionTable extends AbstractMigration
{
    public function up()
    {
        $this->table("version")
            ->addColumn('is_temp', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否临时提交'])
            ->save();
    }

    public function down()
    {
        $this->table("version")
            ->removeColumn("is_temp")
            ->save();
    }
}
